package com.kaishengit.action;

import java.io.PrintWriter;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;


import org.apache.struts2.ServletActionContext;
import org.springframework.beans.factory.annotation.Autowired;

import com.kaishengit.pojo.Province;
import com.kaishengit.service.ProvinceService;
import com.opensymphony.xwork2.ActionContext;
import com.opensymphony.xwork2.ActionSupport;

public class ProvinceAction extends ActionSupport {
	
	HttpServletRequest request = (HttpServletRequest)
			ActionContext.getContext().get(ServletActionContext.HTTP_REQUEST); 
	HttpServletResponse response = (HttpServletResponse)
			ActionContext.getContext().get(ServletActionContext.HTTP_RESPONSE);
	Map<String,Object> session = ActionContext.getContext().getSession();
	private static final long serialVersionUID = 1L;
	

	private ProvinceService provinceService;
	private List<Province> provices=new ArrayList<Province>();
	
	
	public String execute() throws Exception{
		

		
		return SUCCESS;
		
	}

	@Autowired
	public ProvinceService getProvinceService() {
		return provinceService;
	}

	public void setProvinceService(ProvinceService provinceService) {
		this.provinceService = provinceService;
	}
	
	
	public List<Province> getProvices() {
		return provices;
	}

	public void setProvices(List<Province> provices) {
		this.provices = provices;
	}

}
